Optimal. Leaf size=86 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {2 d e+f}+2 e x}{\sqrt {2 d e-f}}\right )}{\sqrt {2 d e-f}}-\frac {\tan ^{-1}\left (\frac {\sqrt {2 d e+f}-2 e x}{\sqrt {2 d e-f}}\right )}{\sqrt {2 d e-f}} \]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {1161, 618, 204} \begin {gather*} \frac {\tan ^{-1}\left (\frac {\sqrt {2 d e+f}+2 e x}{\sqrt {2 d e-f}}\right )}{\sqrt {2 d e-f}}-\frac {\tan ^{-1}\left (\frac {\sqrt {2 d e+f}-2 e x}{\sqrt {2 d e-f}}\right )}{\sqrt {2 d e-f}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 1161
Rubi steps
\begin {align*} \int \frac {d+e x^2}{d^2-f x^2+e^2 x^4} \, dx &=\frac {\int \frac {1}{\frac {d}{e}-\frac {\sqrt {2 d e+f} x}{e}+x^2} \, dx}{2 e}+\frac {\int \frac {1}{\frac {d}{e}+\frac {\sqrt {2 d e+f} x}{e}+x^2} \, dx}{2 e}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1}{-\frac {2 d e-f}{e^2}-x^2} \, dx,x,-\frac {\sqrt {2 d e+f}}{e}+2 x\right )}{e}-\frac {\operatorname {Subst}\left (\int \frac {1}{-\frac {2 d e-f}{e^2}-x^2} \, dx,x,\frac {\sqrt {2 d e+f}}{e}+2 x\right )}{e}\\ &=-\frac {\tan ^{-1}\left (\frac {\sqrt {2 d e+f}-2 e x}{\sqrt {2 d e-f}}\right )}{\sqrt {2 d e-f}}+\frac {\tan ^{-1}\left (\frac {\sqrt {2 d e+f}+2 e x}{\sqrt {2 d e-f}}\right )}{\sqrt {2 d e-f}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.11, size = 189, normalized size = 2.20 \begin {gather*} \frac {\frac {\left (\sqrt {f^2-4 d^2 e^2}+2 d e+f\right ) \tan ^{-1}\left (\frac {\sqrt {2} e x}{\sqrt {-\sqrt {f^2-4 d^2 e^2}-f}}\right )}{\sqrt {-\sqrt {f^2-4 d^2 e^2}-f}}+\frac {\left (\sqrt {f^2-4 d^2 e^2}-2 d e-f\right ) \tan ^{-1}\left (\frac {\sqrt {2} e x}{\sqrt {\sqrt {f^2-4 d^2 e^2}-f}}\right )}{\sqrt {\sqrt {f^2-4 d^2 e^2}-f}}}{\sqrt {2} \sqrt {f^2-4 d^2 e^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {d+e x^2}{d^2-f x^2+e^2 x^4} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.76, size = 179, normalized size = 2.08 \begin {gather*} \left [-\frac {\sqrt {-2 \, d e + f} \log \left (\frac {e^{2} x^{4} - {\left (4 \, d e - f\right )} x^{2} + d^{2} - 2 \, {\left (e x^{3} - d x\right )} \sqrt {-2 \, d e + f}}{e^{2} x^{4} - f x^{2} + d^{2}}\right )}{2 \, {\left (2 \, d e - f\right )}}, -\frac {\sqrt {2 \, d e - f} \arctan \left (-\frac {e x}{\sqrt {2 \, d e - f}}\right ) + \sqrt {2 \, d e - f} \arctan \left (-\frac {{\left (e^{2} x^{3} + {\left (d e - f\right )} x\right )} \sqrt {2 \, d e - f}}{2 \, d^{2} e - d f}\right )}{2 \, d e - f}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.14, size = 1676, normalized size = 19.49
result too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 75, normalized size = 0.87 \begin {gather*} -\frac {\arctan \left (\frac {-2 e x +\sqrt {2 d e +f}}{\sqrt {2 d e -f}}\right )}{\sqrt {2 d e -f}}+\frac {\arctan \left (\frac {2 e x +\sqrt {2 d e +f}}{\sqrt {2 d e -f}}\right )}{\sqrt {2 d e -f}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {e x^{2} + d}{e^{2} x^{4} - f x^{2} + d^{2}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.39, size = 88, normalized size = 1.02 \begin {gather*} -\frac {\mathrm {atan}\left (\frac {e^2\,x^3\,\sqrt {2\,d\,e-f}-f\,x\,\sqrt {2\,d\,e-f}+d\,e\,x\,\sqrt {2\,d\,e-f}}{d\,\left (f-2\,d\,e\right )}\right )-\mathrm {atan}\left (\frac {e\,x}{\sqrt {2\,d\,e-f}}\right )}{\sqrt {2\,d\,e-f}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.55, size = 121, normalized size = 1.41 \begin {gather*} - \frac {\sqrt {- \frac {1}{2 d e - f}} \log {\left (- \frac {d}{e} + x^{2} + \frac {x \left (- 2 d e \sqrt {- \frac {1}{2 d e - f}} + f \sqrt {- \frac {1}{2 d e - f}}\right )}{e} \right )}}{2} + \frac {\sqrt {- \frac {1}{2 d e - f}} \log {\left (- \frac {d}{e} + x^{2} + \frac {x \left (2 d e \sqrt {- \frac {1}{2 d e - f}} - f \sqrt {- \frac {1}{2 d e - f}}\right )}{e} \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________